package model;


/**
 * class AddUserRequest - for adding a user
 */
public class AddUserRequest extends Request{
		
	String userName;
	String password;
	
	/**
	 * constructor
	 * @param userName - the use name
	 * @param password - the user's password
	 */
	public AddUserRequest(String userName, String password)
	{
		super();
		this.userName = userName;
		this.password = password;
	}
	
	@Override
	/**
	 * add the user
	 */
	public Integer call() {
		// TODO Auto-generated method stub
		return DbAdapter.getInstance().addUser(userName,password);
		
	}

}
